export const treeDataSmall = [
  {
    label: '地貌调查数据',
    children: [
      { label: '微地貌测量面', pathName: 'P1', baseUrl: '/modules/P1', qualityPath: '/qc/data1', idName: 'hgsrId', caret: 0, checked: false },
      { label: '微地貌测量线', pathName: 'L1', baseUrl: '/modules/L1', qualityPath: '/qc/data2', idName: 'hgslId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '地球化学探测数据',
    children: [
      { label: '地球化学探测测点', pathName: 'Pt4', baseUrl: '/modules/Pt4', qualityPath: '/qc/data3', idName: 'hgspId', caret: 0, checked: false },
      { label: '地球化学探测测线', pathName: 'L3', baseUrl: '/modules/L3', qualityPath: '/qc/data4', idName: 'hgslId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '地球物理探测数据',
    children: [
      { label: '地球物理测点', pathName: 'Pt6', baseUrl: '/modules/Pt6', qualityPath: '/qc/data5', idName: 'hgspId', caret: 0, checked: false },
      { label: '地球物理测线', pathName: 'L5', baseUrl: '/modules/L5', qualityPath: '/qc/data6', idName: 'hgslId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '地震波数据',
    children: [
      { label: '1970年以来地震目录', pathName: 'Pt10', baseUrl: '/modules/Pt10', qualityPath: '/qc/data7', idName: 'hicId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '地质调查数据',
    children: [
      { label: '地貌面', pathName: 'P11', baseUrl: '/modules/P11', qualityPath: '/qc/data8', idName: 'hgpId', caret: 0, checked: false },
      { label: '地貌线', pathName: 'L14', baseUrl: '/modules/L14', qualityPath: '/qc/data9', idName: 'hglId', caret: 0, checked: false },
      { label: '地质地貌调查观测点', pathName: 'Pt20', baseUrl: '/modules/Pt20', qualityPath: '/qc/data10', idName: 'hggspId', caret: 0, checked: false },
      { label: '地质调查工程表', pathName: 'geologySvyProject', baseUrl: '/modules/geologySvyProject', qualityPath: '/qc/data11', idName: 'hgsptId', caret: 0, checked: false },
      { label: '地质调查观测点', pathName: 'Pt21', baseUrl: '/modules/Pt21', qualityPath: '/qc/data12', idName: 'hgspId', caret: 0, checked: false },
      { label: '活动断层', pathName: 'L13', baseUrl: '/modules/L13', qualityPath: '/qc/data13', idName: 'hafId', caret: 0, checked: false },
      { label: '探槽', pathName: 'Pt24', baseUrl: '/modules/Pt24', qualityPath: '/qc/data14', idName: 'htId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '工作地图',
    children: [
      { label: '1：5万地层-面', pathName: 'P30', baseUrl: '/modules/P30', qualityPath: '/qc/data15', idName: 'hsId', caret: 0, checked: false },
      { label: '1：5万地貌点', pathName: 'Pt30', baseUrl: '/modules/Pt30', qualityPath: '/qc/data16', idName: 'hgpId', caret: 0, checked: false },
      { label: '1：5万断层产状', pathName: 'Pt31', baseUrl: '/modules/Pt31', qualityPath: '/qc/data17', idName: 'hfaId', caret: 0, checked: false },
      { label: '1：5万岩体-面', pathName: 'P32', baseUrl: '/modules/P32', qualityPath: '/qc/data18', idName: 'hrId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '火山调查数据',
    children: [
      { label: '火山采样点', pathName: 'Pt32', baseUrl: '/modules/Pt32', qualityPath: '/qc/data19', idName: 'hvspId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '区域调查',
    children: [
      { label: '工作区', pathName: 'P39', baseUrl: '/modules/P39', qualityPath: '/qc/data20', idName: 'hwrId', caret: 0, checked: false },
      { label: '目标区', pathName: 'P41', baseUrl: '/modules/P41', qualityPath: '/qc/data21', idName: 'htrId', caret: 0, checked: false },
      { label: '主要活动断层制图区', pathName: 'P42', baseUrl: '/modules/P42', qualityPath: '/qc/data22', idName: 'hmarId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  },
  {
    label: '野外采样数据',
    children: [
      { label: '采样点', pathName: 'Pt40', baseUrl: '/modules/Pt40', qualityPath: '/qc/data23', idName: 'hspId', caret: 0, checked: false },
      { label: '采样工程表', pathName: 'sampleProjectTable', baseUrl: '/modules/sampleProject', qualityPath: '/qc/data24', idName: 'hsptId', caret: 0, checked: false },
    ],
    caret: 0,
    checked: false
  },
  {
    label: '钻探调查数据',
    children: [
      { label: '跨断层钻探剖面', pathName: 'L48', baseUrl: '/modules/L48', qualityPath: '/qc/data25', idName: 'hdpId', caret: 0, checked: false },
      { label: '钻探工程表', pathName: 'drillProjectTable', baseUrl: '/modules/drillProject', qualityPath: '/qc/data26', idName: 'hdptId', caret: 0, checked: false },
      { label: '钻孔', pathName: 'Pt46', baseUrl: '/modules/Pt46', qualityPath: '/qc/data27', idName: 'hdhId', caret: 0, checked: false }
    ],
    caret: 0,
    checked: false
  }
]

export const isNeedQuality = (type) => {
  let flag = false
  treeDataSmall.map(item => {
    let objItem = item.children.find(itemChild => itemChild.pathName == type)
    if(objItem) flag = true
  })
  return flag
}